
enum Direction{

    E, W, S, N

}

fn print(x: Direction){


    match x{
    
        Direction::E =>{
            println!("east");
        
        }
        Direction::W | Direction::N=>{
        
            println!("west");
        }
        Direction::S =>{
        
            println!("south");
        }
   
    }


}


fn main()
{

    let x = Direction::W;

    print(x);



}

